<?php

	session_start();

	if(isset($_SESSION['logged'])){
		$host  = $_SERVER['HTTP_HOST'];
		$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
		$extra = 'controlador/home.php';
		header("Location: http://$host$uri/$extra");
		exit;

	}else{
		include_once '../include/tags.php';
		include_once 'login.php';
	}

?>